package com.ruoyi.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.customer.mapper.ErpCustomerInfoMapper;
import com.ruoyi.customer.domain.ErpCustomerInfo;
import com.ruoyi.customer.service.IErpCustomerInfoService;

/**
 * 客户认领跟进Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-29
 */
@Service
public class ErpCustomerInfoServiceImpl implements IErpCustomerInfoService 
{
    @Autowired
    private ErpCustomerInfoMapper erpCustomerInfoMapper;

    /**
     * 查询客户认领跟进
     * 
     * @param id 客户认领跟进主键
     * @return 客户认领跟进
     */
    @Override
    public ErpCustomerInfo selectErpCustomerInfoById(Long id)
    {
        return erpCustomerInfoMapper.selectErpCustomerInfoById(id);
    }

    /**
     * 查询客户认领跟进列表
     * 
     * @param erpCustomerInfo 客户认领跟进
     * @return 客户认领跟进
     */
    @Override
    public List<ErpCustomerInfo> selectErpCustomerInfoList(ErpCustomerInfo erpCustomerInfo)
    {
        return erpCustomerInfoMapper.selectErpCustomerInfoList(erpCustomerInfo);
    }

    /**
     * 新增客户认领跟进
     * 
     * @param erpCustomerInfo 客户认领跟进
     * @return 结果
     */
    @Override
    public int insertErpCustomerInfo(ErpCustomerInfo erpCustomerInfo)
    {
        return erpCustomerInfoMapper.insertErpCustomerInfo(erpCustomerInfo);
    }

    /**
     * 修改客户认领跟进
     * 
     * @param erpCustomerInfo 客户认领跟进
     * @return 结果
     */
    @Override
    public int updateErpCustomerInfo(ErpCustomerInfo erpCustomerInfo)
    {
        return erpCustomerInfoMapper.updateErpCustomerInfo(erpCustomerInfo);
    }

    /**
     * 批量删除客户认领跟进
     * 
     * @param ids 需要删除的客户认领跟进主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInfoByIds(Long[] ids)
    {
        return erpCustomerInfoMapper.deleteErpCustomerInfoByIds(ids);
    }

    /**
     * 删除客户认领跟进信息
     * 
     * @param id 客户认领跟进主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInfoById(Long id)
    {
        return erpCustomerInfoMapper.deleteErpCustomerInfoById(id);
    }
}
